package com.sun.vo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author SunRui
 * @description TODO
 * @date 2025/1/13 9:07
 */
@Getter
@Setter
@TableName("dish")
@Schema(name = "DishVO", description = "")
public class DishVO {
    @Schema(description = "菜品ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "菜品名称")
    @TableField("name")
    private String name;

    @Schema(description = "价格")
    @TableField("price")
    private BigDecimal price;

    @Schema(description = "菜品描述")
    @TableField("description")
    private String description;


    @Schema(description = "上架状态（0：下架，1：上架）")
    @TableField("status")
    private Integer status;

    @Schema(description = "创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private Date createdAt;

    @Schema(description = "更新时间")
    @TableField("updated_at")
    private Date updatedAt;

    @Schema(description = "分类名称")
    @TableField("CategoryName")
    private String CategoryName;
}
